/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.tesam.gedeon.dao;

import com.tesam.gedeon.entity.Rol;
import java.util.List;

/**
 *
 * @author joelpacheco
 */
public interface RolDao {

    public int save(Rol rol);

    public int delete(Rol rol);

    public int update(Rol rol);
    
    public Rol getById(int rolId);

    public List<Rol> getAll();

    public List<Rol> getAllByLimit(int startLimit, int endLimit, String dataToSort, String directionOfOrder);

    public List<Rol> searchByName(Rol rol, int satartLimit, int endLimit);
    
    public int getCountSearchByName(Rol rol);

    public int getCountTotal();
    
    public List<Rol> getAllByProfileId(int rolId);
    
    public List<Rol> getAllByParentId(int parentId);
    
    public int saveTreeView(int createdby,int ownerid,String treerol);
    
    public int updateTreeView(Rol rol);
    
    public String getTreeView();
    
    public int getCountTreeView();
    
    public int getCountByParentId(int id);
    
    
}
